home *** CD-ROM | disk | FTP | other *** search
/ Explorer - Mosaic & Web / Explorer - Mosaic & Web.iso / tools / wing / demos / static / makefile.16 next >
Encoding:
Makefile  |  1994-10-08  |  812 b   |  46 lines

  1. NAME= STATIC
  2.  
  3. CC  = cl /c /AL /G3 /GA /Oxwt /W3 /Zi $(DEF)
  4. ASM = masm -Mx
  5. LINK= link /NOE /NOD /MAP /NOPACKCODE /STACK:10240 /ALIGN:16 /ONERROR:NOEXE
  6. DEF = -DSTRICT
  7. RC  = rc
  8.  
  9. OBJDIR = .
  10. OBJ  = $(OBJDIR)\$(NAME).obj
  11.  
  12. INCLUDE = $(INCLUDE);C:\WING\INCLUDE
  13. LIB     = $(LIB);C:\WING\LIB
  14.  
  15. LIBS = libw llibcew commdlg wing mmsystem
  16.  
  17. .c{$(OBJDIR)}.obj:
  18.     $(CC) /Fo$*.obj $<
  19.  
  20. .asm{$(OBJDIR)}.obj:
  21.     $(ASM) $<,$*.obj;
  22.  
  23. goal: $(NAME).exe
  24.  
  25. $(NAME).exe: $(OBJ) $(NAME).res $(NAME).def
  26.     $(LINK) $(OBJ), $(NAME), $(NAME), $(LIBS), $(NAME).def
  27.     rc $(NAME).res
  28.     -mapsym $(NAME).map
  29.  
  30. $(NAME).res: $(NAME).rc $(NAME).ico
  31.     $(RC) -r $(NAME).rc
  32.  
  33. clean:
  34.     del $(NAME).exe
  35.     del *.res
  36.     del *.err
  37.     del *.obj
  38.     del *.map
  39.     del *.sym
  40.     del *.cod
  41.     del *.pdb
  42.     del *.wsp
  43.     del *.vcw
  44.     del *.sbr
  45.     del *.bsc
  46.